-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch/peak boundary int #100
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Please double check that nothing broke with the 1D plotting tutorials especially with adding the ms_level_str argument
@jcharkow I propagated changes to the class plotting methods, the tutorials and the manuscript figures. Let me know if I missed any other places |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry just looking at this again I'm not a huge fan of adding the trasitionGroup as an argument because could lead to breaking functionality.
E.g. what if a different transition group is provided than the one that is plotted?
I think a better implementation might be to create a dummy transitionGroup from the current plotting object and then do the check.
OR (possibly easier)
make add_peak_boundaries a private method that is invoked by the plot() function. If a transition list is supplied then the boundaries will be plotted.
Let me know your thoughts
@jcharkow, good point. I think we can just make I'm not sure why TransitionGroup::plot does this separately outside the interactive plotter? |
The idea behind the |
did you want to work on this or should I? |
This is fine and makes sense, but I don't see why it's necessary to call |
I just made some changes based on making Feel free to change if there's a better option of dealing with this |
Sorry misunderstanding
Sorry misunderstanding yes it does not make sense for add_peak_boundaries outside of plot call. I must have missed something in the implementation |
@jcharkow feel free to merge when ready |
Changed the peak boundaries vbar max int value to use the max method in the TransitionGroup object. This ensures the peak boundaries are of reasonable height based on the max intensity within the boundary to avoid really high peak vbars.
Contents (#100)
Fixes
Other
Uncategorised!